package index

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"hello/app/http/controllers"
	"net/http"
)

type Index struct {
	controllers.Base
}

func NewIndexIndex() Index {
	return Index{}
}

//网站首页
func (mc *Index) Index(ctx *gin.Context) {
	fmt.Println("测试")

	ctx.JSON(http.StatusOK, gin.H{
		"code": 1,
		"msg":  "msg",
		"data": "data",
	})
}

//文章列表
func (mc *Index) ArticleList(ctx *gin.Context) {

}

//文章详情
func (mc *Index) Article(ctx *gin.Context) {

}

//栏目列表
func (mc *Index) Categorys(ctx *gin.Context) {

}
